package com.esiag.pdsteam.main;

import java.io.IOException;
import java.util.logging.FileHandler;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.logging.SimpleFormatter;

import com.esiag.pdsteam.syncro.EPileType;
import com.esiag.pdsteam.syncro.IPileSynchro;


public class PileSynchro implements IPileSynchro{
//	private static Logger logger = Logger.getLogger("ordonnancer");
	
	public PileSynchro() {
	/*//	FileHandler fileHandler;
		//try {
			//fileHandler = new FileHandler("ordonnancer.log");
			//logger.addHandler( fileHandler);
			SimpleFormatter formatter = new SimpleFormatter();  
	        fileHandler.setFormatter(formatter);  
		} catch (SecurityException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		*/
	}
	
	synchronized public void write(EPileType pEntity) {
		
		//Information information = depiler(pEntity);
		//producer=new ActiveMQProducer(Information.class);
		//producer.send(information);
		//logger.log(Level.INFO, pEntity.getCode());
	}
}
